<p>将web.xml的web-app标签改为：</p><pre class="ql-syntax" spellcheck="false">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                      https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
         version="5.0"
         metadata-complete="true"&gt;
&lt;/web-app&gt;
</pre><p><br></p><attachment contenteditable="false" data-atts="%5B%5D" data-aid=".atts-17e1dffb-ead2-4544-af09-a55286e6cf31"></attachment><p><br></p>